package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;

public class OrderLogRowMapper implements RowMapper<OrderLog> {

	@Override
	public OrderLog mapper(ResultSet rs) throws SQLException {
		OrderLog ol=new OrderLog();
		ol.setOrderLogid(rs.getInt("order_logid"));
		ol.setOrderid(rs.getInt("orderid"));
		ol.setContent(rs.getString("content"));
		ol.setOperatorid(rs.getInt("operatorid"));
		ol.setOperatorType(rs.getInt("operator_type"));
		ol.setTime(rs.getTimestamp("time"));
		return ol;
	}

}
